<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>V4L2_PIX_FMT_Y41P ('Y41P')</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="Video for Linux Two API Specification"
HREF="book1.htm"><LINK
REL="UP"
TITLE="YUV Formats"
HREF="x3891.htm"><LINK
REL="PREVIOUS"
TITLE="V4L2_PIX_FMT_UYVY ('UYVY')"
HREF="r4484.htm"><LINK
REL="NEXT"
TITLE="V4L2_PIX_FMT_YVU420 ('YV12'), V4L2_PIX_FMT_YUV420 ('YU12')"
HREF="r4850.htm"></HEAD
><BODY
CLASS="REFENTRY"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Video for Linux Two API Specification: Revision 0.24</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="r4484.htm"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="r4850.htm"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="V4L2-PIX-FMT-Y41P"
></A
>V4L2_PIX_FMT_Y41P ('Y41P')</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4633"
></A
><H2
>Name</H2
><CODE
CLASS="CONSTANT"
>V4L2_PIX_FMT_Y41P</CODE
>&nbsp;--&nbsp;Format with &frac14; horizontal chroma
resolution, also known as YUV 4:1:1</DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4637"
></A
><H2
>Description</H2
><P
>In this format each 12 bytes is eight pixels. In the
twelve bytes are two CbCr pairs and eight Y's. The first CbCr pair
goes with the first four Y's, and the second CbCr pair goes with the
other four Y's. The Cb and Cr components have one fourth the
horizontal resolution of the Y component.</P
><P
>Do not confuse this format with <A
HREF="r5319.htm"
><CODE
CLASS="CONSTANT"
>V4L2_PIX_FMT_YUV411P</CODE
></A
>.
Y41P is derived from "YUV 4:1:1 <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>packed</I
></SPAN
>", while
YUV411P stands for "YUV 4:1:1 <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>planar</I
></SPAN
>".</P
><DIV
CLASS="EXAMPLE"
><A
NAME="AEN4645"
></A
><P
><B
>Example 2-1. <CODE
CLASS="CONSTANT"
>V4L2_PIX_FMT_Y41P</CODE
> 8 &times; 4
pixel image</B
></P
><DIV
CLASS="FORMALPARA"
><P
><B
>Byte Order. </B
>Each cell is one byte.
                <DIV
CLASS="INFORMALTABLE"
><P
></P
><A
NAME="AEN4651"
></A
><TABLE
BORDER="0"
FRAME="void"
CLASS="CALSTABLE"
><COL
WIDTH="2*"
ALIGN="LEFT"><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><TBODY
VALIGN="TOP"
><TR
><TD
>start&nbsp;+&nbsp;0:</TD
><TD
>Cb<SUB
>00</SUB
></TD
><TD
>Y'<SUB
>00</SUB
></TD
><TD
>Cr<SUB
>00</SUB
></TD
><TD
>Y'<SUB
>01</SUB
></TD
><TD
>Cb<SUB
>01</SUB
></TD
><TD
>Y'<SUB
>02</SUB
></TD
><TD
>Cr<SUB
>01</SUB
></TD
><TD
>Y'<SUB
>03</SUB
></TD
><TD
>Y'<SUB
>04</SUB
></TD
><TD
>Y'<SUB
>05</SUB
></TD
><TD
>Y'<SUB
>06</SUB
></TD
><TD
>Y'<SUB
>07</SUB
></TD
></TR
><TR
><TD
>start&nbsp;+&nbsp;12:</TD
><TD
>Cb<SUB
>10</SUB
></TD
><TD
>Y'<SUB
>10</SUB
></TD
><TD
>Cr<SUB
>10</SUB
></TD
><TD
>Y'<SUB
>11</SUB
></TD
><TD
>Cb<SUB
>11</SUB
></TD
><TD
>Y'<SUB
>12</SUB
></TD
><TD
>Cr<SUB
>11</SUB
></TD
><TD
>Y'<SUB
>13</SUB
></TD
><TD
>Y'<SUB
>14</SUB
></TD
><TD
>Y'<SUB
>15</SUB
></TD
><TD
>Y'<SUB
>16</SUB
></TD
><TD
>Y'<SUB
>17</SUB
></TD
></TR
><TR
><TD
>start&nbsp;+&nbsp;24:</TD
><TD
>Cb<SUB
>20</SUB
></TD
><TD
>Y'<SUB
>20</SUB
></TD
><TD
>Cr<SUB
>20</SUB
></TD
><TD
>Y'<SUB
>21</SUB
></TD
><TD
>Cb<SUB
>21</SUB
></TD
><TD
>Y'<SUB
>22</SUB
></TD
><TD
>Cr<SUB
>21</SUB
></TD
><TD
>Y'<SUB
>23</SUB
></TD
><TD
>Y'<SUB
>24</SUB
></TD
><TD
>Y'<SUB
>25</SUB
></TD
><TD
>Y'<SUB
>26</SUB
></TD
><TD
>Y'<SUB
>27</SUB
></TD
></TR
><TR
><TD
>start&nbsp;+&nbsp;36:</TD
><TD
>Cb<SUB
>30</SUB
></TD
><TD
>Y'<SUB
>30</SUB
></TD
><TD
>Cr<SUB
>30</SUB
></TD
><TD
>Y'<SUB
>31</SUB
></TD
><TD
>Cb<SUB
>31</SUB
></TD
><TD
>Y'<SUB
>32</SUB
></TD
><TD
>Cr<SUB
>31</SUB
></TD
><TD
>Y'<SUB
>33</SUB
></TD
><TD
>Y'<SUB
>34</SUB
></TD
><TD
>Y'<SUB
>35</SUB
></TD
><TD
>Y'<SUB
>36</SUB
></TD
><TD
>Y'<SUB
>37</SUB
></TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
></P
></DIV
><DIV
CLASS="FORMALPARA"
><P
><B
>Color Sample Location. </B
>                <DIV
CLASS="INFORMALTABLE"
><P
></P
><A
NAME="AEN4762"
></A
><TABLE
BORDER="0"
FRAME="void"
CLASS="CALSTABLE"
><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><TBODY
VALIGN="TOP"
><TR
><TD
>&nbsp;</TD
><TD
>0</TD
><TD
>&nbsp;</TD
><TD
>1</TD
><TD
>&nbsp;</TD
><TD
>2</TD
><TD
>&nbsp;</TD
><TD
>3</TD
><TD
>&nbsp;</TD
><TD
>4</TD
><TD
>&nbsp;</TD
><TD
>5</TD
><TD
>&nbsp;</TD
><TD
>6</TD
><TD
>&nbsp;</TD
><TD
>7</TD
></TR
><TR
><TD
>0</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>C</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>C</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
></TR
><TR
><TD
>1</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>C</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>C</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
></TR
><TR
><TD
>2</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>C</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>C</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
></TR
><TR
><TD
>3</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>C</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
><TD
>C</TD
><TD
>Y</TD
><TD
>&nbsp;</TD
><TD
>Y</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
>
              </P
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="r4484.htm"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="book1.htm"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="r4850.htm"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>V4L2_PIX_FMT_UYVY ('UYVY')</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="x3891.htm"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>V4L2_PIX_FMT_YVU420 ('YV12'), V4L2_PIX_FMT_YUV420 ('YU12')</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>
